package wan.com.templateproject.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author wan
 * @version 1.0.0
 * @Description 消费rabbitmq消息
 * @createTime 2021年11月11日 17:35:26
 */
//@Component
@Slf4j
public class ReceiveRabbitmq {

//    @RabbitListener(queues = "hello")
    public void consumeRabbitmq(String date) {
        log.info("》》》》》》》》》》rabbitmq消费队列开始消费》》》》》》》》》》》");
        log.info("消费的数据:{}", date);
    }

}
